
<?php

session_start();
if (!isset($_SESSION['user']))
    header('Location: login.php');
else {
    header('Location: principal.php'); //linkar para a p�gina principal                                        
}
?>
